function ModuleViewFile(doc, container, width, height, operator, now, options) {
  this._doc = doc;
  this._container = container;
  this._operator = operator;
  this._now = now;
  this._options = options;

  this._item = (options && options.item) ? options.item : null;
  this._callbackFunc = (options && options.callbackFunc) ? options.callbackFunc : null;
  
  this._createElements();
}

ModuleViewFile.prototype._createElements = function() {
  var _self = this;
  this._gui = new ViewFile(this._doc, this._container, this._width, this._height, this._operator, this._now, this._options)._gui;
  
  this._gui.name.appendChild(this._doc.createTextNode(NPFileUtils.cutStr(this._item.name, 6)));
  
  if (this._item.dirId) {
    this._gui.icon.src = 'image/copy/folder.png';
    this._gui.icon.style.cursor = 'pointer';
    this._gui.icon.onclick = function() { _self._callbackFunc(_self._item.dirId); };
  } else {
    this._gui.icon.src = 'image/upload/file.png';
  }
};
